const path = require("node:path");


const str = `C:\\Users\\57693\\Desktop\\testPath\\4fb32888-8259-4cd1-a0f7-bba19935261a\\SYNO0001.dcm`
const newPath = path.resolve(str)
console.log(path.dirname(newPath))